#include "PlanVol.h"

PlanVol::PlanVol(){
}

PlanVol::PlanVol(int id, char* dep, int h_dep, char* arr,int h_arr,int nivo){
  idVol = id;
  idAeroportDeDepart = dep;
  heureDeDepart = h_dep;
  idAeroportDArrivee = arr;
  heureDArrivee = h_arr;
  niveauDeVol = nivo;
}


int PlanVol::getIdVol(){return idVol;}
void PlanVol::setIdVol(int id){idVol = id;}

char* PlanVol::getIdAeroportDeDepart(){return idAeroportDeDepart;}
void PlanVol::setIdAeroportDeDepart(char* idadd){idAeroportDeDepart = idadd;}

int PlanVol::getHeureDeDepart(){return heureDeDepart;}
void PlanVol::setHeureDeDepart(int hdd){heureDeDepart = hdd;}

char* PlanVol::getIdAeroportDArrivee(){return idAeroportDArrivee;}
void PlanVol::setIdAeroportDArrivee(char* idarr){idAeroportDArrivee = idarr;}

int PlanVol::getHeureDArrivee(){return heureDArrivee;}
void PlanVol::setHeureDArrivee(int harr){heureDArrivee = harr;}

int PlanVol::getNiveauDeVol(){return niveauDeVol;}
void PlanVol::setNiveauDeVol(int nivo){niveauDeVol = nivo;}

void PlanVol::afficher()
{
  printf("idVol: %d\n",idVol);
  printf("idAeroportDeDepart: %s\n",idAeroportDeDepart);
  printf("heureDeDepart: %d\n",heureDeDepart);  
  printf("idAeroportDArrivee: %s\n",idAeroportDArrivee);
  printf("heureDArrivee: %d\n",heureDArrivee);  
  printf("niveauDeVol: %d\n",niveauDeVol);  
}


PlanVol::~PlanVol()
{
}
